package com.crpc.core.compress;

/**
 * @author wzy
 * @version 1.0
 * @description:
 * @date 2023/9/30 9:01
 */
public interface Compressor {
    /**
     * @description: 对字节数组进行压缩
     * @author wzy
     * @date 2023/9/30 9:01
     */
    public byte[] compress(byte[] bytes);

    /**
     * @description: 对字节数组进行解压缩
     * @author wzy
     * @date 2023/9/30 9:01
     */
    public byte[] decompress(byte[] bytes);
}
